from django.contrib.sitemaps import Sitemap
from wiki.models import Page

class WikiSitemap(Sitemap):
    priority = 0.8
    changefreq='always'
    
    def items(self):
        return Page.objects.all()

    def lastmod(self, obj):
        return obj.edit_date
